<!-- 主题设置模板 -->
<script type="text/html" template lay-done="layui.data.theme();">
    {{# 
      var local = layui.data(layui.setter.tableName)
      ,theme = local.theme || {}
      ,themeColorIndex =  parseInt((theme && theme.color) ? theme.color.index : 0) || 0;
    }}
<div class="layui-card-header">
    配色方案
</div>
<div class="layui-card-body layadmin-setTheme">
    <ul class="layadmin-setTheme-color">
        {{# layui.each(layui.theme, function(index, item){ }}
        <li layadmin-event="setTheme" data-index="{{ index }}" data-alias="{{ item.alias }}"
            {{ index === themeColorIndex ? 'class="layui-this"' : '' }} title="{{ item.name }}">
            <div class="layadmin-setTheme-header">{{item.name}}</div>
            <div class="layadmin-setTheme-side" style="background-color: {{ item.main }};">
                <div class="layadmin-setTheme-logo" style="background-color: {{ item.logo }};"></div>
            </div>
        </li>
        {{# }); }}
    </ul>
</div>
</script>
<script>

</script>